<div>
    <div class="tw-w-8 tw-inline-block tw-mr-2" style="vertical-align:middle;">
        @if($item->category=='image')
            <div class="ub-cover-1-1 contain tw-w-8 tw-bg-gray-100 tw-rounded tw-cursor-pointer"
                 data-image-preview="{{$url}}"
                 style="background-image:url({{$url}});vertical-align:middle;"></div>
        @else
            <a href="{{$url}}" target="_blank">查看</a>
        @endif
    </div>
    <input type="text" class="form" style="width:10rem;vertical-align:middle;" value="{{$url}}"/>
    <a href="javascript:;" class="btn" style="vertical-align:middle;" data-clipboard-text="{{$url}}">
        <i class="iconfont icon-copy"></i>
    </a>
</div>
